package com.uziot.activiti6.common.util;

/**
 * @author shidt
 * @version V1.0
 * @className ResponseCode
 * @date 2021-02-26 10:38:41
 * @description
 */

public enum ResponseCode {
    /**
     * 异常状态码
     */
    SUCCESS(0, "success"),
    FAIL(1, "未知异常，请联系管理员"),
    NO_LOGIN(-1, "登录失效，请重新登录"),
    NO_PERMISSION(2, "没有权限禁止访问");

    private int code;
    private String msg;

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
